import {inject, provide} from "plain-design-composition";
import {Tab} from "plain-micro-application";

export const MicroNavigatorTabProvider = (() => {
    const NAVIGATOR_TAB_PROVIDER = '@@NAVIGATOR_TAB_PROVIDER'
    return {
        provide: (tab: Tab) => provide(NAVIGATOR_TAB_PROVIDER, tab),
        inject: () => inject(NAVIGATOR_TAB_PROVIDER) as Tab
    }
})();